
let that;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    x: 0,
    y: 0
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    that = this;
  },

  onReady:()=> {
    that.videoCtx = wx.createVideoContext('myVideo')
  },
  play:()=> {
    that.videoCtx.play()
  },
  pause:()=> {
    that.videoCtx.pause()
  }

})